e4a3593ab3e729be7d552a7eb94383dee09b00be,src/main/java/com/acciente/oacc/sql/internal/persister/GrantResourceCreatePermissionSysPersister.java,GrantResourceCreatePermissionSysPersister,removeAllResourceCreateSysPermissions,#SQLConnection#Id#,292

Before Change


            List<Id> descendantDomainIds = new ArrayList<>();

            while (resultSet.next()) {
               final Id<DomainId> descendantDomainId = resultSet.getResourceDomainId("DomainId");

               if (!accessedDomainId.equals(descendantDomainId)) {
                  descendantDomainIds.add(descendantDomainId);
               }
            }

After Change


            statement.setResourceDomainId(1, accessedDomainId);
            SQLResult resultSet = statement.executeQuery();

            List<Id<DomainId>> descendantDomainIds = new ArrayList<>();

            while (resultSet.next()) {
               descendantDomainIds.add(resultSet.getResourceDomainId("DomainId"));
            }

            // delete domains' accessors (in reverse order of domainLevel, to preserve FK constraints)